/**
 * 
 */
package org.cuatrovientos.JavaKart;

/**
 * 
 */

/**
 * Main class to execute program
 * @author mikel_luquin
 *
 */
public class Main {

        /**
         * Main method with a instance of Race, Circuit and Karts, and a method to run
         * @param args
         */
        public static void main(String[] args) {
                Circuito Monza = new Circuito("Monza", 10, 75);
                Race myRace = new Race("myRace",Monza);
                
                Kart Kart1 = new Kart("Ferrari", 0, 0, 0, "Alonso");
                Kart1.start();
                myRace.addkart(Kart1);
                
                Kart Kart2 = new Kart("McLaren", 0, 0, 0, "Hamilton");
                Kart2.start();
                myRace.addkart(Kart2);
                
                Kart Kart3 = new Kart("ForceIndia", 0, 0, 0, "Hulkenberg");
                Kart3.start();
                myRace.addkart(Kart3);
                
                System.out.println("The winner of the race is " + myRace.run());
                
                
        }

}